package gemini.castor.ui.client.page.widget;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.HasHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Panel;

public class ErrorWidget extends Composite implements HasHandlers {

	@UiTemplate("ErrorWidget.ui.xml")
	interface MyUiBinder extends UiBinder<Panel, ErrorWidget> {
	}

	private static final MyUiBinder binder = GWT.create(MyUiBinder.class);

	public ErrorWidget() {
		initWidget(binder.createAndBindUi(this));
	}

	@UiField
	HTML htmMessage;

	public void setMessage(String htmMessage) {
		this.htmMessage.setHTML(htmMessage);
	}
}
